package cn.jingyuan.swan.system.domain.sys.dao;

import cn.jingyuan.swan.cloud.dao.CrudDao;
import cn.jingyuan.swan.system.domain.sys.entity.RoleUser;

import java.util.List;

public interface RoleUserDao extends CrudDao<RoleUser, Long> {

    boolean isExist(Long userId, Long roleId);

    int countByUserId(Long userId);

    int deleteByRoleId(Long roleId);

    int deleteByUserId(Long userId);

    List<RoleUser> listByRoleId(Long roleId);

}
